
import 'dart:convert';

ClassAnnouncementDto classAnnouncementDtoFromJson(String str) =>
    ClassAnnouncementDto.fromJson(json.decode(str));

String classAnnouncementDtoToJson(ClassAnnouncementDto data) =>
    json.encode(data.toJson());

class ClassAnnouncementDto {
  ClassAnnouncementDto({
    this.allStudentsClass,
    this.message,
    this.point,
    this.studentUserName,
  });

  bool? allStudentsClass;
  String? message;
  String? point;
  List<String>? studentUserName;

  factory ClassAnnouncementDto.fromJson(Map<String, dynamic> json) =>
      ClassAnnouncementDto(
        allStudentsClass: json["allStudentsClass"],
        message: json["message"],
        point: json["point"],
        studentUserName: json["studentUserName"] != null
            ? List<String>.from(json["studentUserName"].map((x) => x))
            : null,
      );

  Map<String, dynamic> toJson() => {
        "allStudentsClass": allStudentsClass,
        "message": message,
        "point": point,
        "studentUserName": studentUserName != null
            ? List<dynamic>.from(studentUserName!.map((x) => x))
            : null,
      };
}
